package evocarcassonne.tileseteditor.utils;

import evocarcassonne.core.utils.ZoneType;

public class ZoneTypeItem {

    private ZoneType value;
    private String label;

    public ZoneTypeItem(ZoneType value, String label) {
        this.value = value;
        this.label = label;
    }

    public ZoneType getValue() {
        return this.value;
    }

    public String getLabel() {
        return this.label;
    }

    @Override
    public String toString() {
        return label;
    }


    @Override
    public boolean equals(Object obj) {

        if (value == ((ZoneTypeItem) obj).getValue())
            return true;
        else
            return false;
    }
}